home *** CD-ROM | disk | FTP | other *** search
- #
- # This configuration file for SCIM is recommended.
- #
- # Use "X input method" for standard X applications
- # Use "SCIM IM module" for GTK and Qt 3 applications if available
- #
- # Using this configuration may improve some usability for GTK applications
- # such as the location of word selection window.
-
- # You still need these XIM settings for non-GTK and non-Qt3 programs.
- XIM=SCIM
- XIM_PROGRAM=/usr/bin/scim
- XIM_ARGS="-d"
- XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes
-
- gtkimm_exists () {
- # check if any immodules installed
- for dir in /usr/lib*/gtk-2.0/2.*/immodules; do
- if [ -r ${dir}/im-$1.so ]; then
- return 0
- fi
- done
- return 1
- }
-
- if gtkimm_exists scim-bridge; then
- GTK_IM_MODULE=scim-bridge
- elif gtkimm_exists scim; then
- GTK_IM_MODULE=scim
- else
- GTK_IM_MODULE=xim
- fi
-
- qtimm_exists () {
- # check if any immodule installed
- for dir in /usr/lib*/qt*/plugins/inputmethods; do
- if [ -r ${dir}/$1.so ]; then
- return 0
- fi
- done
- return 1
- }
-
- if qtimm_exists im-scim-bridge; then
- QT_IM_MODULE=scim-bridge
- elif qtimm_exists libqscim; then
- QT_IM_MODULE=scim
- else
- QT_IM_MODULE=xim
- fi
-
- DEPENDS="scim,scim-gtk2-immodule,scim-qtimm,scim-anthy|scim-canna|scim-chewing|scim-pinyin|scim-hangul|scim-prime|scim-skk|scim-tables-additional|scim-m17n|scim-uim|scim-tables-ja|scim-tables-ko|scim-tables-zh"
-
-